package com.example.service.impl;

import com.example.mapper.EbookSnapshotCustMapper;
import com.example.resp.StatisticResp;
import com.example.service.EbookSnapshotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EbookSnapshotServiceImpl implements EbookSnapshotService {

    @Autowired
    EbookSnapshotCustMapper ebookSnapshotCustMapper;

    @Override
    public void getEbookSnapshot() {
        ebookSnapshotCustMapper.getEbookSnapshot();
    }

    @Override
    public List<StatisticResp> getStatistic() {
        return ebookSnapshotCustMapper.getStatistic();
    }

    @Override
    public List<StatisticResp> get30dayStatistic() {
        return ebookSnapshotCustMapper.get30dayStatistic();
    }


}
